Learn R Programming

VeryLargeIntegers (version 0.1.8)

07. Factorial: Factorial of a vli Object

Description

factvli computes and returns the factorial of a vli (Very Large Integers) object. Given a positive integer n, the factorial of n, n!, is defined as the product of all the positive integers from 1 to n.

Usage

factvli(n)

# S3 method for default factvli(n)

# S3 method for numeric factvli(n)

# S3 method for vli factvli(n)

Value

object of class vli

Arguments

n

object of class vli or 32 bits integer

Author

Javier Leiva Cuadrado

Examples

Run this code
if (FALSE) {
n <- as.vli("420")
factvli(n)
}

Run the code above in your browser using DataLab